package com.glls.order.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;


@Data
@AllArgsConstructor
@NoArgsConstructor
public class Order {

    //  orderId 为主键 且主键策略 为 自增长
    @TableId(type = IdType.AUTO)
    private  Integer orderId;

    private Integer userId;

    private Date orderDate;

    private Integer productId;

    private Integer productNum;
}
